/**
 * Copyright � 2012 GestureSoft. ALL RIGHTS RESERVED.
 * This file contains proprietary and GestureSoft CONFIDENTIAL Information.
 * Use, disclosure or reproduction is prohibited.
 * 
 * @fileName DateUtil.as
 * @creationDate Oct 25, 2012
 * @author GestureSoft
 * @version 1.0
 */
package com.gesturesoft.imultimax.model.utility
{
	public class DateUtil
	{
		public function DateUtil()
		{
		}
		
		public static function getShortMonth(value:String):String
		{
			
			var month:String = "";
			switch(value)
			{
				
				case "01":
				{
					
					month = "Jan";
					break;
					
				}
					
				case "02":
				{
					
					month = "Feb";
					break;
					
				}
					
				case "03":
				{
					
					month = "Mar";
					break;
					
				}
					
				case "04":
				{
					
					month = "Apr";
					break;
					
				}
					
				case "05":
				{
					
					month = "May";
					break;
					
				}
					
				case "06":
				{
					
					month = "Jun";
					break;
					
				}
					
				case "07":
				{
					
					month = "Jul";
					break;
					
				}
					
				case "08":
				{
					
					month = "Aug";
					break;
					
				}
					
				case "09":
				{
					
					month = "Sep";
					break;
					
				}
					
				case "10":
				{
					
					month = "Oct";
					break;
					
				}
					
				case "11":
				{
					
					month = "Nov";
					break;
					
				}
					
				case "12":
				{
					
					month = "Dec";
					break;
					
				}
					
				default:
				{
					
					break;
					
				}
					
			}
			
			return month;
			
		}
		
		public static function getShortNumericMonth(value:String):Number
		{
			
			var month:Number;
			switch(value)
			{
				
				case "Jan":
				{
					
					month = 0;
					break;
					
				}
					
				case "Feb":
				{
					
					month = 1;
					break;
					
				}
					
				case "Mar":
				{
					
					month = 2;
					break;
					
				}
					
				case "Apr":
				{
					
					month = 3;
					break;
					
				}
					
				case "May":
				{
					
					month = 4;
					break;
					
				}
					
				case "Jun":
				{
					
					month = 5;
					break;
					
				}
					
				case "Jul":
				{
					
					month = 6;
					break;
					
				}
					
				case "Aug":
				{
					
					month = 7;
					break;
					
				}
					
				case "Sep":
				{
					
					month = 8;
					break;
					
				}
					
				case "Oct":
				{
					
					month = 9;
					break;
					
				}
					
				case "Nov":
				{
					
					month = 10;
					break;
					
				}
					
				case "Dec":
				{
					
					month = 11;
					break;
					
				}
					
				default:
				{
					
					break;
					
				}
					
			}
			
			return month;
			
		}
		
		public static function getShortYear(value:String):String
		{
			return value.substr(2,value.length);
		}
		
		/*public static function getLongMonth(value:String):String
		{
			
			var month:String = "";
			switch(value)
			{
				
				case "01":
				{
					
					month = "January";
					break;
					
				}
					
				case "02":
				{
					
					month = "February";
					break;
					
				}
					
				case "03":
				{
					
					month = "March";
					break;
					
				}
					
				case "04":
				{
					
					month = "April";
					break;
					
				}
					
				case "05":
				{
					
					month = "May";
					break;
					
				}
					
				case "06":
				{
					
					month = "June";
					break;
					
				}
					
				case "07":
				{
					
					month = "July";
					break;
					
				}
					
				case "08":
				{
					
					month = "August";
					break;
					
				}
					
				case "09":
				{
					
					month = "September";
					break;
					
				}
					
				case "10":
				{
					
					month = "October";
					break;
					
				}
					
				case "11":
				{
					
					month = "November";
					break;
					
				}
					
				case "12":
				{
					
					month = "December";
					break;
					
				}
					
				default:
				{
					
					break;
					
				}
					
			}
			
			return month;
			
		}*/

	}
}